package com.xjtu.project.mapper;
import com.xjtu.project.model.domain.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xjtu.project.model.dto.OrdersPageQueryDTO;
import com.xjtu.project.model.vo.OrdersVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 86185
* @description 针对表【orders】的数据库操作Mapper
* @createDate 2025-07-04 18:25:18
* @Entity com.xjtu.project.model.domain.Orders
*/
public interface OrdersMapper extends BaseMapper<Orders> {

    List<OrdersVO> getMyOrders(@Param("page") OrdersPageQueryDTO ordersPageQuery,@Param("userId") Integer userId);
    Integer getTotalCount(Integer status);

    void add(Orders orders);
}




